home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / amos / AMOSList0993.lzh / AMOSLIST / 000061_amos-request@svcs1.digex.net_Tue Sep 7 20:39:28 1993.msg < prev    next >
Internet Message Format  |  1993-10-03  |  1KB

  1. Received: from po.CWRU.Edu by access.digex.net with SMTP id AA27995
  2.   (5.65c/IDA-1.4.4 for <mcox@access.digex.com>); Tue, 7 Sep 1993 20:39:25 -0400
  3. Return-Path: <amos-request@svcs1.digex.net>
  4. Received: from svcs1.digex.net by po.CWRU.Edu with SMTP (5.65b+ida+/CWRU-1.9.3)
  5.     id AA18698; Tue, 7 Sep 93 19:21:54 -0400 from amos-request@svcs1.digex.net for )
  6. Received: by svcs1.digex.net id AA00290
  7.   (5.65c/IDA-1.4.4 for amos-list-out); Tue, 7 Sep 1993 18:38:26 -0400
  8. Received: from access.digex.net by svcs1.digex.net with SMTP id AA22999
  9.   (5.65c/IDA-1.4.4 for <amos-list@svcs1.digex.net>); Tue, 7 Sep 1993 14:43:07 -0400
  10. Received: from vax.mbhs.edu by access.digex.net with SMTP id AA28428
  11.   (5.65c/IDA-1.4.4 for <amos-list@access.digex.net>); Tue, 7 Sep 1993 14:43:04 -0400
  12. Message-Id: <199309071843.AA28428@access.digex.net>
  13. Date: 7 Sep 93 14:31:00 EST
  14. From: "Andrew Church" <95ACHURCH@vax.mbhs.edu>
  15. Subject: 2-button joysticks
  16. To: "amos-list" <amos-list@access.digex.net>
  17. Status: RO
  18.  
  19.   Since everyone seems to be asking, I'll answer.
  20.  
  21.   To test the second button of a joystick in port 1, use the statement
  22.  
  23. BUTTON2=Btst(6,$DFF016)
  24.  
  25. which is the status of bit 14 of custom chip register $DFF016 (POTGOR).
  26. (The bit number is 6 because you can only test single bytes of memory.)
  27.  
  28.   To test the second button of a joystick in port 0, I *think* it would be:
  29.  
  30. BUTTON2=Btst(2,$DFF016)
  31.  
  32. which is bit 10 of POTGOR.
  33.  
  34.   --Andy Church
  35.